package day6work.animalclasss;

public abstract class Animal {
    public int age;

    public String name;
    public String color;
    Animal(int age,String name, String color){
        this.age=age;
        this.name=name;
        this.color=color;
    }
    public abstract void eat();
    public void drink(){
        System.out.println(age+name+color+"正在喝水");
    }


}
